//
//  LPRequestManager.m
//  ShangHaiHuDongApp
//
//  Created by 刘应平 on 2017/11/23.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "LPRequestManager.h"

@implementation LPRequestManager
//获取评分
+(void)request_pfevaluateactionEvalautegetEvaWithREL_ID:(NSString *)REL_ID MX_ID:(NSString *)MX_ID successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary *paramer = [NSMutableDictionary dictionary];
    paramer[@"REL_ID"] = REL_ID;
    paramer[@"MX_ID"] = MX_ID;
    paramer[@"ACCOUNTID"] = ZJUSERINFORMODEL.ORG_ACCOUNT.ID;
     [NetWorkingManager postWithUrlString:@"pf.evaluate.action.Evalaute[getEva]" Parameter:paramer Success:successBlock Fail:failBlock];
}

+(void)request_pfevaluateactionEvalauteinsertWithREL_ID:(NSString *)REL_ID GRADE:(NSString *)GRADE REL_TYPE:(NSString *)REL_TYPE MX_ID:(NSString *)MX_ID successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary *paramer = [NSMutableDictionary dictionary];
    paramer[@"REL_ID"] = REL_ID;
    paramer[@"GRADE"] = GRADE;
    paramer[@"REL_TYPE"] = REL_TYPE;
    paramer[@"CONTENT"] = @"";
    paramer[@"MX_ID"] = MX_ID;
    paramer[@"ACCOUNTID"] = ZJUSERINFORMODEL.ORG_ACCOUNT.ID;
    [NetWorkingManager postWithUrlString:@"pf.evaluate.action.Evalaute[insert]" Parameter:paramer Success:successBlock Fail:failBlock];
    
}

#pragma mark - 三会一课
/** 三会一课列表 TYPE_VALUE  会议类型值（0、支部党员大会 1、党课 2、党支部委员会 3、党小组会议 4、记录）*/
+(void)request_miitactionShykActiongetShykListWithTYPE_VALUE:(NSString *)TYPE_VALUE PAGE_INDEX:(NSString *)PAGE_INDEX successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary *paramer = [NSMutableDictionary dictionary];
    paramer[@"TYPE_VALUE"] = TYPE_VALUE;
    paramer[@"CREATE_ID"] = ZJUSERINFORMODEL.ORG_ACCOUNT.ID;
    paramer[@"PAGE_INDEX"] = PAGE_INDEX;
    paramer[@"PAGE_SIZE"] = @"15";
   
    [NetWorkingManager postWithUrlString:@"miit.action.ShykAction[getShykList]" Parameter:paramer Success:successBlock Fail:failBlock];
}

/** 删除*/
+(void)request_miitactionShykActiondeleteShykWithMSG_ID:(NSString *)MSG_ID successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary *paramer = [NSMutableDictionary dictionary];
    paramer[@"MSG_ID"] = MSG_ID;
    
    [NetWorkingManager postWithUrlString:@"miit.action.ShykAction[deleteShyk]" Parameter:paramer Success:successBlock Fail:failBlock];
}
/** 详情*/
+(void)request_miitactionShykActiongetShykResWithMSG_ID:(NSString *)MSG_ID TYPE_VALUE:(NSString *)TYPE_VALUE successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary *paramer = [NSMutableDictionary dictionary];
    paramer[@"MSG_ID"] = MSG_ID;
    paramer[@"TYPE_VALUE"] = TYPE_VALUE;
    
    [NetWorkingManager postWithUrlString:@"miit.action.ShykAction[getShykRes]" Parameter:paramer Success:successBlock Fail:failBlock];
}


#pragma mark - 会议活动
/**  未开始和已开始会议活动借口  */
+(void)request_miitactionHyActiongetShListWithIS_ENROLL:(NSString *)IS_ENROLL PAGE_INDEX:(NSString *)PAGE_INDEX successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary *paramer = [NSMutableDictionary dictionary];
    paramer[@"IS_ENROLL"] = IS_ENROLL;
    paramer[@"ACCOUNT_ID"] = ZJUSERINFORMODEL.ORG_ACCOUNT.ID;
    paramer[@"PARTYMEMBER_ID"] = ZJUSERINFORMODEL.ORG_ACCOUNT.PARTY_MEMBER_ID;
    paramer[@"PAGE_INDEX"] = PAGE_INDEX;
    paramer[@"PAGE_SIZE"] = @"10";
    
    [NetWorkingManager postWithUrlString:@"miit.action.HyAction[getShList]" Parameter:paramer Success:successBlock Fail:failBlock];
}

/**  删除会议  */
+(void)request_miitactionHyActiondelHisHyWithHY_ID:(NSString *)HY_ID  successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary *paramer = [NSMutableDictionary dictionary];
    paramer[@"HY_ID"] = HY_ID;
    paramer[@"ACCOUNT_ID"] = ZJUSERINFORMODEL.ORG_ACCOUNT.ID;
    [NetWorkingManager postWithUrlString:@"miit.action.HyAction[delHisHy]" Parameter:paramer Success:successBlock Fail:failBlock];
}

@end
